<?php
include "../../../lib/list.php";
if($_GET['no'])$s_no = $_GET['no'];
$qry  = "select * from uatp_staff where no = $no";
$staff = DBarray($qry);

$qry2  = "select * from uatp_shopgroup where no = ".$staff['sg_no'];
$shopgroup = DBarray($qry2);

$qry3  = "select * from uatp_shopinfo where no = ".$staff['s_no'];
$shop = DBarray($qry3);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
<link rel="stylesheet" href="../../../css/insert.css" type="text/css"></link>
<link rel="stylesheet" href="../../../css/list.css" type="text/css"></link>
<script type="text/javascript" src="../../../js/list.js"></script>
</head>
<body>
	<div style="width: 1024px; padding: 10px;">
		<div
			style="border-bottom: 1px solid #e8e8e8; text-align: left; font-size: 12px; margin-bottom: 12px; color: #9a9a9a">:::
			마스터 관리&nbsp;⇒&nbsp;담당자마스터&nbsp;⇒&nbsp;담당자 상세 보기</div>
		
		<form name="detail" method="post">
	<input type="hidden" value="<?=$staff[no]?>" name="chk_no[]"/>
	<input type="hidden" value="" name="mode"/>
	<div id="register">
		<ul>
			<li class="lable">담당자 명</li>
			<li class="detail"><b>&nbsp;<?=$staff['name']?></b>
			</li>
		</ul>
		<ul>
			<li class="lable">직책</li>
			<li class="detail">&nbsp;<?
				switch($staff['lv']){
					case 2:
					echo '그룹 책임자'; break;
					case 3:
					echo '점포 책임자'; break;
					case 4:
					echo '파트타이머'; break;
					}
					?>
			</li>
		</ul>
		<ul>
			<li class="lable">담당자 E-mail</li>
			<li class="detail">&nbsp;<?=$staff['staffmail']?>
			</li>
		</ul>
		<ul>
			<li class="lable">TEL</li>
			<li class="detail">&nbsp;<?=$staff['tel1']?>
			</li>
			<li class="lable">TEL2</li>
			<li class="detail">&nbsp;<?=$staff['tel2']?>
			</li>
		</ul>
		<ul>
			<li class="lable">입사일</li>
			<li class="detail">&nbsp;<?=$staff['start']?>
			</li>
			<li class="lable">퇴사일</li>
			<li class="detail">&nbsp;<?=$staff['end']?>
			</li>
		</ul>
		<ul>
			<li class="lable">그룹</li>
			<li class="detail">&nbsp;<?=$shopgroup['name']?>	
			</li>
		</ul>
		<ul>
			<li class="lable">점포</li>
			<li class="detail">&nbsp;<?=$shop['name']?>
			</li>
		</ul>
	</div>
	
		</form>
<div style="padding: 5px;"><center>
<input type="button" class="button green small"	value="수정하기" onclick="javascript:detail_modify();" /> <input
				type="button" class="button white small" value="돌아가기" onclick="javacsript:history.go(-1)"/></center>
		</div>

	</div>
</body>
</html>
